.orgTreeContainer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}
.orgChartWrapper {
    position: relative;
    width: 100%;
    background-size: 21px;
    height: 100vh;
    background: #f9fafb;

    .legend {
        position: absolute;
        top: 20px;
        left: 20px;

        .legendItem {
            line-height: 14px;
            font-size: 12px;
            cursor: default;
            user-select: none;
            margin-bottom: 6px;

            .legendItemColor {
                display: inline-block;
                width: 14px;
                height: 14px;
                background-color: #aaa;
                margin-right: 5px;
                vertical-align: -2px;
                border-radius: 50%;
            }
        }
    }
    .legendOffset {
        top: 50px;
    }

    :global {
        .linkBase {
            fill: none;
            stroke: rgb(215, 215, 215);
        }
        .nodeBase {
            .nodeShape {
                width: 25px;
                height: 25px;
                display: flex;
                font-weight: 400;
                justify-content: center;
                align-items: center;
                color: rgba(0, 0, 0, 0.65);
                background-color: white;
                border: 1px solid rgba(0, 0, 0, 0.15);
                border-radius: 50%;
                .shape {
                    font-size: 25px;
                    margin-top: -5px;
                    font-weight: 300;
                    width: 25px;
                    height: 25px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            }
        }
        foreignObject {
            zoom: -internal-reset-effective !important;
            display: block;
            overflow: hidden;
            position: relative;
            body {
                background-color: transparent;
            }
        }
        .leafNodeBase {
            > foreignObject:first-child {
                display: none;
            }
        }
        .nodeBase,
        .leafNodeBase {
            > foreignObject {
                overflow: initial;
            }
        }

        .employeeItemName:hover:not(.disabled),
        .employeeItemDuty:hover:not(.disabled),
        .employeeItemRank:hover:not(.disabled) {
            cursor: pointer;
            text-decoration: underline;
        }
        .noEmployeeName:hover {
            text-decoration: none !important;
            cursor: not-allowed;
        }
    }
}

.orgChartOrientation {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 12;
    :global {
        .ant-radio-button-wrapper {
            color: #aaa;
        }
        .ant-radio-button-wrapper-checked {
            color: #ffa22d;
        }
    }
    .treeVertical,
    .treeHorizontal {
        font-size: 20px;
        transform: translateY(3px);
    }
    .treeHorizontal {
        transform: translateY(3px) rotate(-90deg);
    }
}

.orgChartControl {
    position: absolute;
    right: 5px;
    top: 60%;
    margin-top: -120px;
    z-index: 200;
    padding: 5px 0;
    border-radius: 20px;
    width: 40px;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    justify-content: center;
    .sliderControl {
        height: 240px;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 18px;
        color: #49536c;
        .sliderControlZoomIn,
        .sliderControlZoomOut,
        .sliderControlResetPoint {
            cursor: pointer;
            font-size: 26px;
        }
        .sliderControlResetPoint {
            font-size: 22px;
        }
    }
    :global {
        .ant-slider:hover .ant-slider-handle,
        .ant-slider-handle {
            border-color: #49536c;
            background-color: #49536c;
        }
        .ant-slider:hover .ant-slider-track,
        .ant-slider-track {
            background-color: #49536c;
        }
    }
}

.submitButton {
    display: inline-block;
    margin-left: 10px;
}

.loadingWrapper {
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 9999;
}
